<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>菜品详情页</title>

    <link th:href="@{/css/base.css}" rel="stylesheet" type="text/css">
    <link th:href="@{/css/header.css}" rel="stylesheet" type="text/css">
    <link th:href="@{/css/goodsinformation.css}" rel="stylesheet" type="text/css">
    <link th:href="@{/css/copyright.css}" rel="stylesheet" type="text/css">
    <script th:src="@{/js/jquery-1.11.1.min.js}"></script>
    <script th:src="@{/js/menu.js}" rel="script"></script>
    <script th:src="@{/js/copyright.js}" rel="script"></script>
    <script th:src="@{/js/ajax_load_day_info.js}"></script>

</head>

<body>
<div th:replace="header :: header"></div>
<div th:replace="goodsinformation :: goodsinformation"></div>
<div th:replace="copyright :: copyright"></div>


<script th:inline="javascript" type="text/javascript">

    $("#goods_details_img").bind("error", function () {
        this.src = "/image/error.jpg";
    });

    var drGoodsJsonList = [[${drGoodsJsonList}]];
    for (var i = 0; i < drGoodsJsonList.length; i++) {
        var mrtj = drGoodsJsonList[i].mrtj;

        //每日推荐菜品，0 || null 为不推荐，1为推荐
        if (mrtj != null && mrtj != 0 && mrtj == 1) {
            $("#today_recommend").fadeIn();
        }
    }

    loadCopyrightFirst();

</script>


</body>

</html>
